package com.kameiqi.erp.domain.model;
import cn.qqxkj.core.annotation.agile.SubPage;
import cn.qqxkj.core.common.base.BaseModel;
import cn.qqxkj.core.annotation.agile.Page;
import cn.qqxkj.core.annotation.agile.PageField;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.kameiqi.erp.constant.PermissionMenus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.lang.Boolean;
import java.math.BigInteger;
import java.lang.String;
import java.lang.Integer;

/**
 * 仓库表实体类
 * @author 小六子
 * @date 2022-04-23 15:17:32
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Table(name = "jsh_depot")
@Entity
@Page(cover = true, parentUri = PermissionMenus.INFO, subPages = {
        @SubPage(pageModel = DepotItem.class, title = "单据子表")
})
@ApiModel("仓库")
public class Depot extends BaseModel{
    /** 仓库名称 */
    @ApiModelProperty(value="仓库名称")
    private String name;

    /** 仓库地址 */
    @ApiModelProperty(value="仓库地址")
    private String address;

    /** 仓储费 */
    @ApiModelProperty(value="仓储费")
    @Column(scale=6)
    @PageField(dataScale=6)
    private BigDecimal warehousing;

    /** 搬运费 */
    @ApiModelProperty(value="搬运费")
    @Column(scale=6)
    @PageField(dataScale=6)
    private BigDecimal truckage;

    /** 类型 */
    @ApiModelProperty(value="类型")
    private Integer type;

    /** 排序 */
    @ApiModelProperty(value="排序")
    private String sort;

    /** 描述 */
    @ApiModelProperty(value="描述")
    private String remark;

    /** 负责人 */
    @ApiModelProperty(value="负责人")
    private Long principal;

    /** 租户id */
    @ApiModelProperty(value="租户id")
    private Long tenantId;

    /** 删除标记，0未删除，1删除 */
    @ApiModelProperty(value="删除标记",notes="删除标记，0未删除，1删除")
    private String deleteFlag;

    /** 是否默认 */
    @ApiModelProperty(value="是否默认")
    private Boolean isDefault;

}
